package cn.zeal4j.domain;

import java.io.Serializable;
import java.util.HashSet;
import java.util.Set;

/**
 * @author Administrator
 * @file IntelliJ IDEA Hibernate-Tutorial
 * @create 2020 09 26 22:08
 */
public class Employee implements Serializable {
    private static final long serialVersionUID = -6524261539072181203L;
    private Integer employeeId;
    private String employeeName;
    private Set<Project> projectSet = new HashSet<>();

    public Employee() {
    }

    public Employee(Integer employeeId, String employeeName, Set<Project> projectSet) {
        this.employeeId = employeeId;
        this.employeeName = employeeName;
        this.projectSet = projectSet;
    }

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public Integer getEmployeeId() {
        return employeeId;
    }

    public void setEmployeeId(Integer employeeId) {
        this.employeeId = employeeId;
    }

    public String getEmployeeName() {
        return employeeName;
    }

    public void setEmployeeName(String employeeName) {
        this.employeeName = employeeName;
    }

    public Set<Project> getProjectSet() {
        return projectSet;
    }

    public void setProjectSet(Set<Project> projectSet) {
        this.projectSet = projectSet;
    }

    @Override
    public String toString() {
        return "Employee{" +
                "employeeId=" + employeeId +
                ", employeeName='" + employeeName + '\'' +
                ", projectSet=" + projectSet +
                '}';
    }
}
